/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package modelo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Mike
 */
@Entity
@Table(name = "fechas_proy_2")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "FechasProy2.findAll", query = "SELECT f FROM FechasProy2 f"),
    @NamedQuery(name = "FechasProy2.findByPeriodo", query = "SELECT f FROM FechasProy2 f WHERE f.periodo = :periodo"),
    @NamedQuery(name = "FechasProy2.findByAvance1Fin", query = "SELECT f FROM FechasProy2 f WHERE f.avance1Fin = :avance1Fin"),
    @NamedQuery(name = "FechasProy2.findByAvance2Fin", query = "SELECT f FROM FechasProy2 f WHERE f.avance2Fin = :avance2Fin"),
    @NamedQuery(name = "FechasProy2.findByAvance3Fin", query = "SELECT f FROM FechasProy2 f WHERE f.avance3Fin = :avance3Fin"),
    @NamedQuery(name = "FechasProy2.findByPresPrivadaFin", query = "SELECT f FROM FechasProy2 f WHERE f.presPrivadaFin = :presPrivadaFin"),
    @NamedQuery(name = "FechasProy2.findByInformeFinalFin", query = "SELECT f FROM FechasProy2 f WHERE f.informeFinalFin = :informeFinalFin"),
    @NamedQuery(name = "FechasProy2.findByPresPublicaFin", query = "SELECT f FROM FechasProy2 f WHERE f.presPublicaFin = :presPublicaFin")})
public class FechasProy2 implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "periodo")
    private Integer periodo;
    @Basic(optional = false)
    @Column(name = "avance1_fin")
    private String avance1Fin;
    @Basic(optional = false)
    @Column(name = "avance2_fin")
    private String avance2Fin;
    @Basic(optional = false)
    @Column(name = "avance3_fin")
    private String avance3Fin;
    @Basic(optional = false)
    @Column(name = "pres_privada_fin")
    private String presPrivadaFin;
    @Basic(optional = false)
    @Column(name = "informe_final_fin")
    private String informeFinalFin;
    @Basic(optional = false)
    @Column(name = "pres_publica_fin")
    private String presPublicaFin;

    public FechasProy2() {
    }

    public FechasProy2(Integer periodo) {
        this.periodo = periodo;
    }

    public FechasProy2(Integer periodo, String avance1Fin, String avance2Fin, String avance3Fin, String presPrivadaFin, String informeFinalFin, String presPublicaFin) {
        this.periodo = periodo;
        this.avance1Fin = avance1Fin;
        this.avance2Fin = avance2Fin;
        this.avance3Fin = avance3Fin;
        this.presPrivadaFin = presPrivadaFin;
        this.informeFinalFin = informeFinalFin;
        this.presPublicaFin = presPublicaFin;
    }

    public Integer getPeriodo() {
        return periodo;
    }

    public void setPeriodo(Integer periodo) {
        this.periodo = periodo;
    }

    public String getAvance1Fin() {
        return avance1Fin;
    }

    public void setAvance1Fin(String avance1Fin) {
        this.avance1Fin = avance1Fin;
    }

    public String getAvance2Fin() {
        return avance2Fin;
    }

    public void setAvance2Fin(String avance2Fin) {
        this.avance2Fin = avance2Fin;
    }

    public String getAvance3Fin() {
        return avance3Fin;
    }

    public void setAvance3Fin(String avance3Fin) {
        this.avance3Fin = avance3Fin;
    }

    public String getPresPrivadaFin() {
        return presPrivadaFin;
    }

    public void setPresPrivadaFin(String presPrivadaFin) {
        this.presPrivadaFin = presPrivadaFin;
    }

    public String getInformeFinalFin() {
        return informeFinalFin;
    }

    public void setInformeFinalFin(String informeFinalFin) {
        this.informeFinalFin = informeFinalFin;
    }

    public String getPresPublicaFin() {
        return presPublicaFin;
    }

    public void setPresPublicaFin(String presPublicaFin) {
        this.presPublicaFin = presPublicaFin;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (periodo != null ? periodo.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof FechasProy2)) {
            return false;
        }
        FechasProy2 other = (FechasProy2) object;
        if ((this.periodo == null && other.periodo != null) || (this.periodo != null && !this.periodo.equals(other.periodo))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "modelo.FechasProy2[ periodo=" + periodo + " ]";
    }
    
}
